package cn.bluemobi.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.bluemobi.app.entity.output.Brochure;
import cn.bluemobi.app.mapper.BrochureMapper;
import cn.bluemobi.app.service.BrochureService;
import cn.bluemobi.common.core.dto.Dto;

/**
 * 
 * @author lvxh
 * 
 */
@Service
@Transactional
public class BrochureServiceImpl implements BrochureService {

    @Autowired
    private BrochureMapper brochureMapper;

    @Override
    public Dto<Brochure> getBrochure(String type) {
        Dto<Brochure> dto = new Dto<Brochure>();
        Brochure brochure = brochureMapper.getBrochure(type);
        dto.setData(brochure);
        return dto;
    }

}
